docs: Annotate XML fragments as such
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 28 Jan 2021 15:42:22 +0000 (15:42 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Feb 2021 16:38:58 +0000 (11:38 -0500)
This way we can get syntax highlighting.

gtk/gtkwidget.c

index 4f597197c9e9046ef6843350ec49e10f2180fe09..2fd25d71d23f6e224e1da4ad3810bd1b7c97abce 100644 (file)
  * If the parent widget uses a #GtkLayoutManager, #GtkWidget supports a
  * custom `<layout>` element, used to define layout properties:
  *
- * |[
+ * |[<!-- language="xml" -->
  * <object class="MyGrid" id="grid1">
  *   <child>
  *     <object class="GtkLabel" id="label1">
  *
  * GtkWidget allows style information such as style classes to
  * be associated with widgets, using the custom `<style>` element:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <object class="GtkButton" id="button1">
  *   <style>
  *     <class name="my-special-button-class"/>
  *
  * GtkWidget allows defining accessibility information, such as properties,
  * relations, and states, using the custom `<accessibility>` element:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <object class="GtkButton" id="button1">
  *   <accessibility>
  *     <property name="label">Download</property>
  * `<template>` tag.
  *
  * An example of a GtkBuilder Template Definition:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <interface>
  *   <template class="FooWidget" parent="GtkBox">
  *     <property name="orientation">horizontal</property>